<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D旋转</title>
    <link rel="shortcut icon" href="../lib/image/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../lib/css/all.css">

</head>
<style>
    img {
        width: 200px;
        height: 200px;
    }

    body {
        background-color: #313131;
    }

    @keyframes fn {
        0% {
            transform: rotateX(-15deg) rotateY(0deg);
        }

        100% {
            transform: rotateX(-15deg) rotateY(360deg);
        }

    }

    @-moz-keyframes fn {
        0% {
            transform: rotateX(-15deg) rotateY(0deg);
        }

        100% {
            transform: rotateX(-15deg) rotateY(360deg);
        }
    }

    @-ms-keyframes fn {
        0% {
            transform: rotateX(-15deg) rotateY(0deg);
        }

        100% {
            transform: rotateX(-15deg) rotateY(360deg);
        }
    }

    @-webkit-keyframes fn {
        0% {
            transform: rotateX(-15deg) rotateY(0deg);
        }

        100% {
            transform: rotateX(-15deg) rotateY(360deg);
        }
    }

    .box {
        width: 200px;
        height: 200px;
        position: relative;
        margin: auto;
        margin-top: 150px;
        transform-style: preserve-3d;
        transform: rotateX(-10deg);
        animation: fn 10s;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
        position: relative
    }

    .box:hover {
        animation-play-state: paused;
    }

    .box>div {
        width: 200px;
        height: 200px;
        position: absolute;
        left: 0;
        top: 0;

    }
</style>

<body>
    <div id="app">
        <div class="box">
            <div style="transform: rotateY(0deg) translateZ(360px);">
                <img src="../lib/image/1.jpg">
            </div>
            <div style="transform: rotateY(60deg) translateZ(360px);">
                <img src="../lib/image/2.jpg">
            </div>
            <div style="transform: rotateY(120deg) translateZ(360px);">
                <img src="../lib/image/3.jpg">
            </div>
            <div style="transform: rotateY(180deg) translateZ(360px);">
                <img src="../lib/image/4.jpg">
            </div>
            <div style="transform: rotateY(240deg) translateZ(360px);">
                <img src="../lib/image/5.jpg">
            </div>
            <div style="transform: rotateY(300deg) translateZ(360px);">
                <img src="../lib/image/6.jpg">
            </div>
        </div>
    </div>
</body>

</html>